<?php
namespace Admin\Controller;
use Think\Controller;
class AdminController extends Controller {
    public function _initialize() {
        $tTime = time();
        $tLogintime = strtotime($_SESSION['ru_adm_logintime']);
        if(empty($_SESSION['ru_adm_username']) || ($tLogintime+3600) < $tTime){
            $this->redirect(MODULE_NAME . '/Login/index');    
        }
    }

}

